<?php
/**
 * 后台首页文件
 */
require_once "Sys.class.php";
SYS::init();
exit;
require "common.php";
echo head();


$dbconfig = array("user"=>"root","pass"=>"","schema"=>"thankphp");

$code[] = c_header();
$code[] = "";
$code[] = c_footer();
echo body(implode("",$code));

$db = db_connect($dbconfig);

$sql = "select * from `qj_thankphp_catagory`";

$result = $db->query($sql);
$result->setFetchMode(PDO::FETCH_OBJ);
while($row = $result->fetch()) {
	echo $row->catagory_name."<br />";
}
echo $result->columnCount();
?>

